package cn.edu.scau.cmi.yewangjiang.abstractFactory.factory;
import cn.edu.scau.cmi.yewangjiang.abstractFactory.domainInterface.*;
import cn.edu.scau.cmi.yewangjiang.abstractFactory.domainAbstractClass.*;

public abstract class AbstractFactory {
    public AbstractFactory getFactory(String brand) {
    	brand=brand.toLowerCase();
    	switch(brand) {
    	case "wens":
    		return new WensFactory();
    	case "aonong":
    		return new AonongFactory();
    	case "tianbang":
    		return new TianbangFactory();
    	}
    	return null;
    }
    public abstract ConsumerMeat createBeef();
    public abstract ConsumerMeat createChicken();
    public abstract ConsumerMeat createPork();
}
